package com.hu.zhcc.shiro.entity.tj;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 运动项目库
 * </p>
 *
 * @author tj
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TSportsItemLibrary extends Model<TSportsItemLibrary> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编码
     */
    private String code;
    /**
     * 项目名称
     */
    private String name;
    /**
     * 项目强度
     */
    private String strength;
    /**
     * 千步当量
     */
    private Integer thousandStepEquivalent;
    /**
     * 运动时间，minutes单位
     */
    private Integer movementTime;
    /**
     * 年龄下限
     */
    @TableField("minAge")
    private Integer minAge;
    /**
     * 年龄上限
     */
    @TableField("maxAge")
    private Integer maxAge;
    /**
     * 适用性别，0 男，1 女，2不限
     */
    private Integer applyToGender;
    /**
     * 拉伸部位
     */
    private String tensileParts;
    /**
     * 动作方法
     */
    private String actionMethod;
    /**
     * 注意事项
     */
    private String notes;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrength() {
        return strength;
    }

    public void setStrength(String strength) {
        this.strength = strength;
    }

    public Integer getThousandStepEquivalent() {
        return thousandStepEquivalent;
    }

    public void setThousandStepEquivalent(Integer thousandStepEquivalent) {
        this.thousandStepEquivalent = thousandStepEquivalent;
    }

    public Integer getMovementTime() {
        return movementTime;
    }

    public void setMovementTime(Integer movementTime) {
        this.movementTime = movementTime;
    }

    public Integer getMinAge() {
        return minAge;
    }

    public void setMinAge(Integer minAge) {
        this.minAge = minAge;
    }

    public Integer getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Integer maxAge) {
        this.maxAge = maxAge;
    }

    public Integer getApplyToGender() {
        return applyToGender;
    }

    public void setApplyToGender(Integer applyToGender) {
        this.applyToGender = applyToGender;
    }

    public String getTensileParts() {
        return tensileParts;
    }

    public void setTensileParts(String tensileParts) {
        this.tensileParts = tensileParts;
    }

    public String getActionMethod() {
        return actionMethod;
    }

    public void setActionMethod(String actionMethod) {
        this.actionMethod = actionMethod;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
